<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    let i = +prompt('请输入要弹出的次数')
    let a = 1
    while (a <= i) {
      document.write('坚持一下，你可以的<br>');
      a++
    }
  </script>
</body>

</html>